<?php
namespace App\Http\Services;
use Illuminate\Support\Facades\Storage;

class ConDate{

    public function getDate ($klk) {
        $time =strtotime($klk);
        $weekArr = array("(日)","(月)","(火)","(水)","(木)","(金)","(土)");
        $tr = date("Y/m/d",$time);
        $number_wk = date("w", $time);
        $ti = date("H:i:s",$time);
        $wqe = $weekArr[$number_wk];
        $sad=$tr." ".$wqe." ".$ti;
        return $sad;
    }

    public function getDateTime ($klk){
        $time =strtotime($klk);
        $weekArr = array("(日)","(月)","(火)","(水)","(木)","(金)","(土)");
        $tr1 = date("Y/m/d",$time);
        $number_wk = date("w", $time);
        $tr2 = date("H:i:s",$time);
        $wqe = $weekArr[$number_wk];
        $sad=$tr1." ".$wqe." ".$tr2;
        return $sad;
    }
}